# $Id: PKGBUILD 84906 2013-02-26 01:29:13Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Josh VanderLinden <arch@cloudlery.com>
# Contributor: Nicolas Storme <nicolas@atelier-web.com>

pkgname=goaccess
pkgver=0.5
pkgrel=2
pkgdesc="An open source real-time web log analyzer and interactive viewer"
arch=('i686' 'x86_64')
url="http://goaccess.prosoftcorp.com"
license=('GPL')
depends=('ncurses' 'geoip' 'glib2')
source=(http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('f6359a9553a460265f5859cea4d40ec0')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --enable-geoip
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make prefix="$pkgdir/usr" install
}
